package com.evision.webcrawler.util;

import java.net.MalformedURLException;
import java.net.URL;

/**
 * author: ${yl}.
 * date: 17-10-25.
 * description: .
 */
public class NetUrlUtil {

    public static String getDomain(String netUrl) throws MalformedURLException {
        URL url = new URL(netUrl);
        return url.getHost();

    }
}
